<!--首页-功能模块-->
<template>
  <div>
    <div class="row">
      <div class="column acenter all" v-for="(item, index) in title1" v-bind:key="index" @click="menuClick(item)">
        <LImage class="icon" :src="Config.img(icons1[index]+'.png')"></LImage>
        <text class="font24 text2 tCenter">{{T(item)}}</text>
      </div>
    </div>

    <div class="height36"></div>
    <div class="row">
      <div class="column acenter all" v-for="(item, index) in title2" v-bind:key="index" @click="menuClick(item)">
        <LImage class="icon" :src="Config.img(icons2[index]+'.png')"></LImage>
        <text class="font24 text2 tCenter">{{T(item)}}</text>
      </div>
    </div>

  </div>
</template>

<style src="@/_css/style.css" ></style>
<style scoped>
  .icon {
    width: 88px;
    height: 70px;
    margin-bottom: 10px;
  }
  .height36 {
    height: 36px;
  }
</style>

<script>
  import jconfig from "@/_js/config";

  import I18N from "@/_i18n/i18n";
  var T = I18N.t;

  export default {
    data() {
      return {
        T: T,
        Config: jconfig,

        //v2_api 去掉
        icons1: ["v2_xueyuan", "ic_ai_index", "v2_kaihu", "v2_shangcheng"],
        icons2: ["v2_gendan", "v2_huodong", "v2_yaoqing", "v2_hehuoren"],

        title1: ["学院", "AI提醒助手", "交易所开户", "策略商城"],
        title2: ["策略跟单", "活动中心", "邀请好友", "合伙人"],
      };
    },

    created() {},

    methods: {
      /********************************** 点击触发*/
      //菜单点击
      menuClick(title) {
        this.$emit("click", title);
      },
    },
  };
</script>

